<div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch (e) {
        }
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="<?= URL::base() . "admin" ?>">Home</a>
        </li>
        <?php
        if (!empty($breadcrumbs)) {
            $i = 0;
            foreach ($breadcrumbs as $key => $value) {
                if (empty($value)) {
                    echo '<li >' . $key . '&nbsp;</li>';
                } else if (is_array($value)) {
                    $attr = '';
                    foreach ($value as $k => $v) {
                        $attr .= " " . $k . "='$v'";
                    }
                    echo '<li ' . ($i == count($breadcrumbs) - 1 ? 'class="active"' : '') . '>
                            <a '.$attr.'>' . $key . '&nbsp;</a>
                        </li>';
                } else {
                    echo '<li ' . ($i == count($breadcrumbs) - 1 ? 'class="active"' : '') . '>
                            <a href="' . $value . '">' . $key . '&nbsp;</a>
                        </li>';
                }
                $i++;
            }
        }
        ?>

    </ul><!-- .breadcrumb -->

    <div class="nav-search" id="nav-search">
        <form class="form-search" action="<?= URL::base().'admin/user/list' ?>" method="get">
            <span class="input-icon">
                <input type="text" placeholder="Search ..." name="textsearch" value="<?= Arr::get($_REQUEST, 'textsearch') ?>" class="nav-search-input"  autocomplete="off" />
                <i class="icon-search nav-search-icon"></i>
                <input type="hidden" value="0" name="act" />
            </span>
        </form>
    </div><!-- #nav-search -->
</div>
